package com.ll.demo1.option;

/**
 * @description:
 * @author: LiuLei
 * @create: 2024-09-29
 **/
public class ExeptionTest {

        public void testException() {
            long q = 1L;
            long b = 12132123L;
            long c = q+b;
            try {
                int a = 1 / 0; // 这将导致除以零的异常
            } catch (ArithmeticException e) {
                System.out.println("发生算术异常");
            }
    }
}

